package Modele;

import java.util.ArrayList;

public class Puissance {
	private String nom;
	private String abreviation;
	private String couleur;
	private ArrayList<Region> listeregionDepart;
	private ArrayList<Unite> listeUnite;

	public Puissance(String nom, String abreviation, String couleur,
			Region... tabRegionDep) {
		this.nom = nom;
		this.abreviation = abreviation;
		this.couleur = couleur;
		listeregionDepart = new ArrayList<Region>();
		for (int i = 0; i < tabRegionDep.length; i++) {
			listeregionDepart.add(tabRegionDep[i]);
		}
		listeUnite = new ArrayList<Unite>();
	}

	public String getNom() {
		return this.nom;
	}

	public String getAbreviation() {
		return this.abreviation;
	}

	public String getCouleur() {
		return this.couleur;
	}

	public boolean equals(Puissance p) {
		return nom.equals(p.getNom())
				&& abreviation.equalsIgnoreCase(p.getAbreviation());
	}
}
